package com.cs410.collabwriting.junit.main;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TestName;

import com.cs410.collabwriting.main.TagConstant;
import com.cs410.collabwriting.tools.LogManager;

import junit.framework.Assert;

public class TagConstantTest {
	@Rule
	public TestName m_testName = new TestName();
	
	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
		LogManager.logInfo("[JUnitTest] -- Starting JUnit Tests for TagConstant" );
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
		LogManager.logInfo("[JUnitTest] -- Finished JUnit Tests for TagConstant" );
	}

	@Before
	public void setUp() throws Exception {
		LogManager.logInfo("[JUnitTest] -- Starting Test : " + m_testName.getMethodName() );
	}

	@After
	public void tearDown() throws Exception {
		LogManager.logInfo("[JUnitTest] -- Finished Test : " + m_testName.getMethodName() );
	}
	
	@Test
	public void basicTagConstantTest() {
		String[] tagConstants = TagConstant.getAllTagNames();
		Assert.assertNotNull( tagConstants );
		Assert.assertTrue( tagConstants.length > 0 );
	}


}
